package org.perso.bd.application;

import org.restlet.Component;
import org.restlet.Server;
import org.restlet.data.Protocol;

/**
 * LECTRA
 * PerformanceMonitoringComponent class
 * @author c.maignien
 */
public class ListBDComponent extends Component {


    private static final int PORT = 8088;
    private static final String WEBAPP_CTX = "listbd";





    public static void main(String[] args) throws Exception {
        new ListBDComponent().start();
    }

    public ListBDComponent() {
        Server server = new Server(Protocol.HTTP, PORT);
        getServers().add(server);

        getClients().add(Protocol.CLAP);
        getDefaultHost().attachDefault(new ListBDApplication(WEBAPP_CTX));
    }
}
